<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>

<body>
	<center>
		<h1>用户列表</h1><hr>
		<table>
			<tr>
				<td>序号</td>
				<td>姓名</td>
				<td>年龄</td>
				<td>日期</td>
				<td>操作</td>
			</tr>
			<c:forEach var="u" items="${list}" varStatus="idx">
			<tr>
				<td>${idx.count}</td>
				<td>${u.name}</td>
				<td>${u.age}</td>
				<td><fmt:formatDate value="${u.ctime}" pattern="yyyy-MM-dd HH:mm"/></td>
				<td>
					<a href="#">编辑</a>
					<a href="#">删除</a>
				</td>
			</tr>
			</c:forEach>
		</table>
	</center>
</body>

</html>